<script>
import FormRender from '@/components/FreeForm/render/index.vue'

export default {
  name: 'FormRenderView',
  components: { FormRender },
  data() {
    return {
      ctx: {
        data: null,
        vars: null,
        formKey: null,
        businessKey: null
      }
    }
  },
  created() {
    const { formKey, businessKey } = this.$route.query
    this.ctx.formKey = formKey
    this.ctx.businessKey = businessKey
  }
}
</script>

<template>
  <form-render
    :form-code="ctx.formKey"
    :business-key="ctx.businessKey"
    :is-design="false"
  />
</template>

<style scoped lang="scss">

</style>
